// require('./../../components/noticeTypes/noticeTypes.js');
var api = require('./../../../../source/js/service.js');
var vm = avalon.define({
	$id:"notice",
	currNotice:'',
	notice:{},
	content:'',
	test:'test',
	getNotice:function(){
		var that = this
		this.currNotice = avalon.vmodels.notices.currNotice;
		return api.getItems({
			method:api.getNotice,
			query:{
				id:that.currNotice
			}
		},function(res){
			if(res.success){
				avalon.log('2121212')
				that.notice = res.data
				that.content = res.data.content
			}
		})
	},
	init:function(){
		this.getNotice()
		// this.test='zzzzz'
	}
})
module.exports = vm;